package com.itgaoshu.hospitalproject.service.impl;

import com.itgaoshu.hospitalproject.bean.Litem;
import com.itgaoshu.hospitalproject.bean.Lrecord;
import com.itgaoshu.hospitalproject.mapper.LitemMapper;
import com.itgaoshu.hospitalproject.service.LitemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Service
@Transactional
public class LitemServiceImpl implements LitemService {
    @Autowired
    private LitemMapper litemMapper;
    //查询所有的检查项目
    @Override
    public List<Litem> selItems(Litem litem) {
        return litemMapper.selItems(litem);
    }

    //给该患者添加收费项目
    @Override
    public int addItem(Lrecord lrecord) {
        return litemMapper.addItem(lrecord);
    }

}
